package com.jk.controller;

import com.jk.api.HomePageApi;
import com.jk.dao.HomePageDao;
import com.jk.po.TravelAreaPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

/***
 * @ClassName: HomePageController
 * @Description:TODO
 * @Auther: 王宇超
 * @Date: 2021/6/30 20:48
 * @version : V1.0
 */
@Controller
public class HomePageController implements HomePageApi {
    @Autowired
    private HomePageDao homePageDao;

    @Override
    public List<TravelAreaPO> queryHappyPlay() {
        return homePageDao.queryHappyPlay();
    }

    @Override
    public TravelAreaPO queryHomeById(Integer id) {
        return homePageDao.selectById(id);
    }

    @Override
    public TravelAreaPO queryYuYueById(Integer id) {

        return homePageDao.selectById(id);
    }
}
